package com.sfh.gd.exception;

/**
 * 远程服务调用异常
 *
 */
public class RemoteException extends AbstractException {


    public RemoteException(String errorMessage) {
        super(errorMessage);
    }

    public RemoteException(int errorCode, String errorMessage) {
        super(errorCode, errorMessage);
    }

    public RemoteException(String errorMessage, Throwable throwable) {
        super(errorMessage, throwable);
    }

    public RemoteException(int errorCode, String errorMessage, Throwable throwable) {
        super(errorCode, errorMessage, throwable);
    }

    @Override
    public String toString() {
        return "RemoteException{" +
                "code='" + errorCode + "'," +
                "message='" + errorMessage + "'" +
                '}';
    }
}